package 并发编程12.CountDownLatch模块;

/**
 * @author idea
 * @data 2019/1/28
 */
public class Service {

    public void testMethod() throws InterruptedException {
        System.out.println(Thread.currentThread().getName()+"begin timer"+System.currentTimeMillis());
        Thread.sleep((long) (Math.random()*1000));
        System.out.println(Thread.currentThread().getName()+"end timer"+System.currentTimeMillis());
    }


}
